package com.lww.feature.test.thread;

/**
 * User: yian
 * Date: 2017/9/14
 */
public class AllAndThreadDebugTestImpl implements Runnable {

    int sharad = 0;

    @Override
    public void run() {
        sharad = sharad + 1;

        System.out.println(sharad);
        System.out.println("========="+Thread.currentThread().getName());
    }

    public static void main(String[] args) throws InterruptedException {
        AllAndThreadDebugTestImpl runnable = new AllAndThreadDebugTestImpl();
        Thread thread = new Thread(runnable,"test111111111");
        Thread thread2 = new Thread(runnable,"test222222222");
        thread.start();
        thread2.start();
    }
}
